package org.itboys.mobile.entity.mongo;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * 作者：jiangxiong
 * 日期：2017年5月8日
 * 描述：众包_通讯录_实体。
 *
 */
@Entity(value="ZhongBaoContact", noClassnameStored=true)
public class ZhongBaoContact extends BaseMongoEntity{
    private Long parentId;//通讯录归属人
    private Long memberId;//绑定的memberId。新增员工的时候是没有memberId的。当员工登陆后，系统绑定。
    private String nickName;//名称
    private String mobile;//联系电话
    private String remark;//备注
    private Integer type;//1，员工，2同事，3客户。

    public ZhongBaoContact() {
    }

    public ZhongBaoContact(Long parentId, String nickName, String mobile, String remark, Integer type) {
        this.parentId = parentId;
        this.nickName = nickName;
        this.mobile = mobile;
        this.remark = remark;
        this.type = type;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
